<!--{*
/*
 * This file is part of EC-CUBE
 *
 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
 *
 * http://www.lockon.co.jp/
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
*}-->

<div id="alpha">
<div id="alpha-inner">
<!--▼SUB NAVI-->
<!--{include file=$tpl_subnavi}-->
<!--▲SUB NAVI-->
</div>
</div>



<div id="beta">
<div id="beta-inner">
<form name="search_form" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->" >
<input type="hidden" name="mode" value="search">
<div class="title_page">
<h2><!--{$tpl_subtitle}--></h2>
</div>



<div class="menuclass">
<table summary="検索条件設定">
<tr>
	<th>投稿者名</th>
	<td><input type="text" name="search_reviewer_name" value="<!--{$arrForm.search_reviewer_name|escape}-->" size="30" class="box30" /></td>
	<th>ホームページアドレス</th>
	<td><input type="text" name="search_reviewer_url" value="<!--{$arrForm.search_reviewer_url}-->" size="30" class="box30" /></td>
</tr>
<tr>
	<th>商品名</th>
	<td><input type="text" name="search_name" value="<!--{$arrForm.search_name|escape}-->" size="30" class="box30" /></td>
	<th>商品コード</th>
	<td><input type="text" name="search_product_code" value="<!--{$arrForm.search_product_code|escape}-->" size="30" class="box30" /></td>
</tr>
<tr>
	<th>性別</th>
	<!--{assign var=key value=search_sex}-->
	<td><!--{html_checkboxes name="$key" options=$arrSex selected=$arrForm[$key]}--></td>
	<th>おすすめレベル</th>
	<td>
	<!--{assign var=key value=search_recommend_level}-->
	<select name="<!--{$key}-->">
	<option value="" selected="selected">選択してください</option><!--{html_options options=$arrRECOMMEND selected=$arrForm[$key].value}-->
	</select>
	</td>
</tr>
<tr>
	<th>投稿日</th>
	<td colspan="3">
	<span class="red"><!--{$arrErr.search_startyear}--></span>
	<span class="red"><!--{$arrErr.search_endyear}--></span>
								<select name="search_startyear" style="<!--{$arrErr.search_startyear|sfGetErrorColor}-->">
								<option value="">----</option>
								<!--{html_options options=$arrStartYear selected=$arrForm.search_startyear}-->
								</select>年
								<select name="search_startmonth" style="<!--{$arrErr.search_startyear|sfGetErrorColor}-->">
								<option value="">--</option>
								<!--{html_options options=$arrStartMonth selected=$arrForm.search_startmonth}-->
								</select>月
								<select name="search_startday" style="<!--{$arrErr.search_startyear|sfGetErrorColor}-->">
								<option value="">--</option>
								<!--{html_options options=$arrStartDay selected=$arrForm.search_startday}-->
								</select>日〜
								<select name="search_endyear" style="<!--{$arrErr.search_endyear|sfGetErrorColor}-->">
								<option value="">----</option>
								<!--{html_options options=$arrEndYear selected=$arrForm.search_endyear}-->
								</select>年
								<select name="search_endmonth" style="<!--{$arrErr.search_endyear|sfGetErrorColor}-->">
								<option value="">--</option>
								<!--{html_options options=$arrEndMonth selected=$arrForm.search_endmonth}-->
								</select>月
								<select name="search_endday" style="<!--{$arrErr.search_endyear|sfGetErrorColor}-->">
								<option value="">--</option>
								<!--{html_options options=$arrEndDay selected=$arrForm.search_endday}-->
								</select>日
	</td>
</tr>
</table>
</div>



<h3>検索結果表示件数
	<!--{assign var=key value="search_page_max"}-->
	<span class="red12"><!--{$arrErr[$key]}--></span>
	<select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->"><!--{html_options options=$arrPageMax selected=$arrForm.search_page_max}-->
	</select> 件
</h3>



<div class="btn_box">
<input type="submit" name="subm" value="この条件で検索する" />
</div>



</form>	



<!--{if $smarty.post.mode == 'search'}-->
	<form name="form1" id="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->">
	<input type="hidden" name="mode" value="search">
	<input type="hidden" name="review_id" value="">
	<input type="hidden" name="search_pageno" value="<!--{$tpl_pageno}-->">
	<!--{foreach key=key item=item from=$arrHidden}-->
	<!--{if $key ne "search_pageno"}-->
	<input type="hidden" name="<!--{$key}-->" value="<!--{$item}-->" >
	<!--{/if}-->
	<!--{/foreach}-->
	<h3>検索結果一覧　<span class="reselt"><!--検索結果数--><!--{$tpl_linemax}-->件</span>&nbsp;が該当しました。</h3>
	<!--検索結果-->

	<div class="searchit">
	<ul>
	<!--{if $smarty.const.ADMIN_MODE == '1'}-->
	<li><input type="button" name="subm" value="検索結果をすべて削除" onclick="fnModeSubmit('delete_all','','');" /></li>
	<!--{/if}-->
	<li><a href="#" onclick="fnModeSubmit('csv','','');" >CSV DOWNLOAD</a></li>
	</ul>
	</div>
	<!--{include file=$tpl_pager}-->



	<!--{ if $arrReview > 0 & $tpl_linemax > 0 }-->
	<!--検索結果表示テーブル-->
	<div class="menuclass">
	<table summary="検索結果一覧">
	<tr>
		<th>投稿日</th><th>投稿者名</th><th>商品名</th><th>おすすめレベル</th><th>表示・非表示</th><th>編集</th><th>削除</th>
	</tr>
	<!--{section name=cnt loop=$arrReview}-->
	<tr>
		<td align="center"><!--{$arrReview[cnt].create_date|sfDispDBDate}--></td>
		<td><!--{$arrReview[cnt].reviewer_name|escape}--></td>
		<td><!--{$arrReview[cnt].name|escape}--></td>
		<!--{assign var=key value="`$arrReview[cnt].recommend_level`"}-->
		<td align="center"><!--{$arrRECOMMEND[$key]}--></td>
		<td align="center"><!--{if $arrReview[cnt].status eq 1}-->表示<!--{elseif $arrReview[cnt].status eq 2}-->非表示<!--{/if}--></td>
		<td align="center"><a href="#" onclick="fnChangeAction('./review_edit.php'); fnModeSubmit('','review_id','<!--{$arrReview[cnt].review_id}-->');">編集</a></td>
		<td align="center"><a href="#" onclick="fnModeSubmit('delete','review_id','<!--{$arrReview[cnt].review_id}-->'); return false;">削除</a></td>
	</tr>
	<!--{/section}-->
	</table>
	</div>
	<!--検索結果表示テーブル-->
	<!--{ /if }-->

</form>
<!--{ /if }-->
</div>
</div>
